﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using GeneralDataAccess;
using Rsa.DataAccess.Models;

namespace Rsa.DataAccess
{
    public class ListaContactoDa:DataAccessBase
    {
        public ListaContactoDa(string pConnectionString) : base(pConnectionString) { }

        public void adicionarLista(ListaContactos pLista)
        {
            IniciarConsulta();
            AdicionarParametro("@nombreLista",pLista.nombreLista);
            try
            {
                string spName = "AdicionarListaContacto1";
                ExecuteNonQuery(spName, System.Data.CommandType.StoredProcedure);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
